package com.rawkit.teksSuara;


import android.app.Activity;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener;

public class teksSuara extends Activity implements OnInitListener{
    /** Called when the activity is first created. */
	private TextToSpeech tekskeaudio;
	static final int TTS_CHECK_CODE = 0;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        tekskeaudio = new TextToSpeech(this, this);
    }
    @Override
	public void onInit(int initStatus) {
    	String kata = "rawkit is awesome. subscribe to get our newsletter. we make the knowledge rawk and fun";
		if (initStatus == TextToSpeech.SUCCESS)
		{
			tekskeaudio.speak(kata, TextToSpeech.QUEUE_FLUSH, null);
		}	
	}
}